static gboolean in_ime_composition = FALSE;
static UINT modal_timer;
-static UINT sync_timer = 0;
static int debug_indent = 0;
}
}
-static VOID CALLBACK
-sync_timer_proc (HWND hwnd,
- UINT msg,
- UINT_PTR id,
- DWORD time)
-{
- MSG message;
- if (PeekMessageW (&message, hwnd, WM_PAINT, WM_PAINT, PM_REMOVE))
- {
- return;
- }
-
- RedrawWindow (hwnd, NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ALLCHILDREN);
-
- KillTimer (hwnd, sync_timer);
-}
-
static gboolean
handle_nchittest (HWND hwnd,
GdkSurface *window,
*ret_valp = 1;
break;
- case WM_SYNCPAINT:
- sync_timer = SetTimer (GDK_SURFACE_HWND (window),
- 1,
- 200, sync_timer_proc);
- break;
-
case WM_PAINT:
handle_wm_paint (msg, window);
break;